<?php 

/**
 * Joomla! 1.5 component arts_curriculum
 * @package    arts_curriculum
 * @subpackage 
 * @author     Chris Borkowski {@link http://www.guggenheim.org}
 * @author     Created on 23-November-2009
 * @author    Modifed on 10-December-2009
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

JHTML::_('behavior.tooltip');

JToolBarHelper::title( JText::_( 'Edit Vocabulary Item /Additional Resources and PFD' ), 'generic.png' );
JToolBarHelper::save();
JToolBarHelper::apply();
JToolBarHelper::cancel( 'cancel', 'Close' );

?>

	

<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">
  <fieldset class="adminform">
    <legend>Vocabulary Item</legend>
    <table class="admintable">
    <tr>
      <td width="100" align="right" class="key">
        Title:
      </td>
      <td>
        <input class="text_area" type="text" name="title" id="title" size="50" maxlength="250" value="<?php echo $this->row->title;?>" />
      </td>
    </tr>
   
    <tr>
      
      <!--	<td valign="top" align="right" class="key"><label for="catid"><?php echo JText::_( 'Exhibition/Theme' ); ?>:</label></td>
	    <td><?php echo $this->lists['catid']; ?></td> -->
      
<td width="100" align="right" class="key">
       <?php echo JText::_( 'Exhibition/Theme Name:' ); ?> 
      </td>
      <td>        
        <input class="text_area" type="text" name="exhibit_name" id="exhibit_name" size="50" maxlength="250" value="<?php echo $this->row->exhibit_name;?>" />
      </td> 
    </tr>
    
     <tr>
      <td width="100" align="right" class="key">
         <?php echo JText::_( 'PDF FILE NAME:' ); ?>
      </td>
      <td>
      <input class="text_area" type="text" name="pdf" id="pdf" size="50" maxlength="250" value="<?php if ($this->row->pdf ==''){ echo 'NO PDF !';} else { echo $this->row->pdf; }?>" />

      </td>
    </tr>
    
    <tr>
      	<td width="100" align="right" class="key">
        <?php echo JText::_( 'Upload PDF' ); ?>
      	</td>
      	<td>
        <input type="file" name="pdf" value="" />
      	</td>
    	</tr>
    
    <tr>
      <td width="100" align="right" class="key">
          <?php echo JText::_( 'Vocabulary:' ); ?>
      </td>
      <td>
      <?php echo $this->editor->display( 'main_body',  $this->row->main_body , '100%', '650', '500', '5' ) ;?>

      </td>
    </tr>
    
    <tr>
      <td width="100" align="right" class="key">
            <?php echo JText::_( 'Additional Resources:' ); ?>
      </td>
      <td>
      <?php echo $this->editor->display( 'additional_resources',  $this->row->additional_resources , '100%', '650', '500', '5' ) ;?>

      </td>
    </tr>
    
    </table>
  </fieldset>
  <?php echo JHTML::_( 'form.token' ); ?>
  <input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />	
  <input type="hidden" name="option" value="<?php echo $option; ?>" />
  <input type="hidden" name="controller" value="vocab" />
  <input type="hidden" name="task" value="" />
</form>
